package com.jintoufs.service.baseinfo;

import com.jintoufs.dao.QueryFilters;
import com.jintoufs.domain.baseinfo.Customer;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2016/9/1 0001.
 */
public interface CustomerService {

    /**
     * 根据条件查询
     *
     * @param filters 属性列表，过滤存在的属性值
     */
    List<Customer> getByFilter(QueryFilters filters);

    /**
     * 根据参数查询
     */
    List<Customer> queryByParams(Map<String, Object> params);

    /**
     * 添加
     */
    Customer add(Customer customer);

    /**
     * 更新
     */
    void update(Customer customer);

    /**
     * 删除
     */
    void delete(Integer id);

    Map<String, Object> getById(int id);
}
